﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Psi.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;

namespace Psi.Api.Gym.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    public class MyController : ControllerBase
    {
        private readonly PsiDbContext _context;

        public MyController(PsiDbContext context)
        {
            _context = context;
        }
        [HttpGet]
        [Route("Index")]
        public async Task<IActionResult> Index()
        {
            return Content("1");
        }
        [HttpGet]
        [Route("Index1")]
        public async Task<IActionResult> Index1()
        {
            var sdf = _context.Users; ;
            //_context.SaveChanges();
            return Content("");
        }

    }
}
